package com.dingding.service.user.facade.order;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import com.dingding.facade.user.service.order.ITaxiConfirmArriveFacade;
import com.dingding.order.dto.confirm.PushTaxiConfirmArrival;
import com.dingding.service.user.core.dao.ITaxiConfirmArriveDao;

/**
 * 
 * @ClassName: TaxiConfirmArriveFacadeImpl 
 * @Description: 出租车确认到达服务实现类
 * @author YHQ
 * @date 2016年7月1日 上午10:40:24
 * 
 */
@Component("taxiConfirmArriveFacade")
public class TaxiConfirmArriveFacadeImpl implements ITaxiConfirmArriveFacade {

	@Resource(name="taxiConfirmArriveDao")
	private ITaxiConfirmArriveDao taxiConfirmArriveDao;
	
	/**
	 * 
	 * @Title: getPushConfirmArrival 
	 * @Description: 获取出租车确认到达通知类内容 
	 * @param passengerId 乘客Id
	 * @param driverId	司机Id
	 * @author YHQ 
	 * @return PushTaxiConfirmArrival    返回类型
	 * 
	 */
	@Override
	@Transactional(readOnly=true)
	public PushTaxiConfirmArrival getPushConfirmArrival(String passengerId, String driverId) {
		
		return taxiConfirmArriveDao.getConfirmArrival(passengerId, driverId);
	}

	/**
	 * 
	 * @Title: getPushConfirmArrival 
	 * @Description: 获取出租车确认到达通知类内容 
	 * @param passengerId 乘客Id
	 * @param driverId	司机Id
	 * @author YHQ 
	 * @return PushTaxiConfirmArrival    返回类型
	 * 
	 */
	@Override
	@Transactional(readOnly=true)
	public PushTaxiConfirmArrival getPushTaxiConfirmArrival(String passengerId, String driverId) {
		
		return taxiConfirmArriveDao.getTaxiConfirmArrival(passengerId, driverId);
	}
	
}
